package com.yangyang.ralearn.net.message;

import com.yangyang.ralearn.common.Constants;

public class MessageId {

	public static final int REQ_JOIN_GROUP = 100001;

	public static final int RESP_JOIN_GROUP = 100002;

	public static final int REQ_CREATE_GROUP = 100003;

	public static final int RESP_CREATE_GROUP = 100004;

	public static final int REQ_HELLO = 100005;

	public static final int RESP_HELLO = 100006;

	public static final int REQ_OBSERVE = 100007;

	public static final int RESP_OBSERVE = 100008;

	public static final int REQ_CANDO = 100009;

	public static final int REQ_DOACTION = 100010;

	public static final int RESP_CANDO = 100011;

	public static final int RESP_DOACTION = 100012;

	public static int encodeId(int id, int groupId, int simulatorId) {
		return id * Constants.MESSAGEBASE + groupId * 10 + simulatorId;
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
